package com.zoe.study.selector;

import com.zoe.study.entity.Apple;
import com.zoe.study.entity.Banana;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author Zoe.Zhang
 * @Date: 2021/09/12
 * @Description
 */
public class FruitImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        System.out.println(Apple.class.getName());
        System.out.println(Banana.class.getName());
        return new String[]{Apple.class.getName(), Banana.class.getName()};
    }
}
